import fillatpl

tpl_path = 'd:/isencher/filler/src/filler/tpl.xlsx'

data = {
    'name': 'John Doe',
    'gender': 'Male',
    'age': 30,
    'incomes': [
        {'year': 2021, 'month':3, 'days':28, 'amount': 10000},
        {'year': 2021, 'month':4, 'days':30, 'amount': 20000},
        {'year': 2021, 'month':5, 'days':31, 'amount': 30000},
    ]
}

filler = fillatpl.TemplateFiller(tpl_path)
filler.fill_template(data)
filler.save('filled.xlsx')


